﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp._01.数组
{
    public static class IntArrayHelper
    {
        public static string Print(int[] nums)
        {
            return string.Join(",", nums);
        }

        public static bool Equals(int[] n1, int[] n2)
        {
            if (n1.Length!=n2.Length)
            {
                return false;
            }

            for (int i = 0; i < n1.Length; i++)
            {
                if (n1[i]!=n2[i])
                {
                    return false;
                }
            }

            return true;
        }
    }
}
